package com.shoes.model;

/**
 * HTTP请求相应DO
 * @author asen
 */
public class ResponseDO {
    private int resultCode;
    private Object data;
    private String msg;

    public ResponseDO() {}

    public ResponseDO(int resultCode, Object data) {
        this.resultCode = resultCode;
        this.data = data;
    }

    public ResponseDO(int resultCode, Object data, String msg) {
        this.resultCode = resultCode;
        this.data = data;
        this.msg = msg;
    }

    @Override
    public String toString() {
        return "resultCode: " + resultCode + "\tdata: " + data + "\tmsg: " +msg;
    }

    public int getResultCode() {
        return resultCode;
    }

    public void setResultCode(int resultCode) {
        this.resultCode = resultCode;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
